import java.sql.*;
public class Dbwork {
	
	public static void main(String args[]) throws SQLException{
		DBAPI dar= new DBAPI();
		int a= dar.dbUpdate("update students set name='mandeep'");
		
		System.out.println(a);
		
		ResultSet rs= dar.dbQuery("select * from students");
		while(rs.next()){
		System.out.println(rs.getString("name"));
		
	}
	}

}
